using IQIGame.Onigao.Game;

namespace IQIGame.Onigao.GamePlay
{
    /// <summary>
    /// 服务或功能的触发范围
    /// </summary>
    [SerializableGroup(SerializableGroup.LevelModuleConfig)]
    public partial class EntityParamTriggerRect : BaseEntityDynamicParam
    {
        public override EntityDynamicParamType type => EntityDynamicParamType.TriggerRect;
        /// <summary>
        /// 触发范围是否可随实体旋转
        /// </summary>
        public bool isRotatable;
        /// <summary>
        /// 是否触发时，变为物理寻路模式
        /// </summary>
        public bool isPhysicNavTrigger;
        /// <summary>
        /// 触发范围矩形
        /// </summary>
        public RectInt rect;
        /// <summary>
        /// 触发范围的高度，为0表示不限制高度，默认是100(厘米)
        /// </summary>
        public int halfHeight;
    }
}
